package com.zzc.service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zzc.common.JsonResult;
import com.zzc.common.TableResult;
import com.zzc.mapper.RechargeMapper;
import com.zzc.pojo.Recharge;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhouzhicheng
 * @version 1.0  2020/12/30
 */

public interface RechargeService {


    /**
     * 查询全部充值信息
     * @param page
     * @param limit
     * @return
     */
    TableResult getRecharge(Integer page, Integer limit);

    /**
     * 添加充值记录
     * @param recharge
     * @return
     */
    JsonResult addRecharge(Recharge recharge);

    /**
     * 批量删除
     * @param ids
     * @return
     */
    JsonResult delRecharge(Integer[] ids);

    /**
     * 修改
     * @param recharge
     * @return
     */
    JsonResult updateRecharge(Recharge recharge);
}
